﻿@model Home.Site.Models.WebUI.MainViewModel
@{
    ViewBag.Title = ViewBag.Message;
}
@section carousel
{
    @*<div id="myCarousel" class="carousel slide">
        <div class="carousel-inner" onclick="window.location.href='/photoalbums'">
            <div class="item active"><img class="carousel-photo" src="@Url.Content("~/Content/images/main/main6.jpg")" alt="Перейти в фотоальбомы"/></div>
            <div class="item"><img class="carousel-photo" src="@Url.Content("~/Content/images/main/main5.jpg")" alt="Перейти в фотоальбомы"/></div>
            <div class="item"><img class="carousel-photo" src="@Url.Content("~/Content/images/main/main4.jpg")" alt="Перейти в фотоальбомы"/></div>
            <div class="item"><img class="carousel-photo" src="@Url.Content("~/Content/images/main/main8.jpg")" alt="Перейти в фотоальбомы"/></div>
            <div class="item"><img class="carousel-photo" src="@Url.Content("~/Content/images/main/main1.jpg")" alt="Перейти в фотоальбомы"/></div>
            <div class="item"><img class="carousel-photo" src="@Url.Content("~/Content/images/main/main11.jpg")" alt="Перейти в фотоальбомы"/></div>
        </div>
        <!-- Carousel nav -->
        <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
        <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
    </div>*@
}
<div class="row-fluid">
    @{if (Model.Interest != null && Model.Interest.Length > 0)
      {
        <div class="span12">
            <h2><a class="header" href="@Url.Action("Interest", "Review")">Интересности</a><span class="info-text">(@Model.InterestCount)</span></h2>
            @foreach (var item in Model.Interest)
            {
                Html.RenderPartial("InfoBox", item);
            }
        </div>
      }
    }
</div>
<div class="row-fluid">
    @{if (Model.Music != null && Model.Music.Length > 0)
      {
        <div class="span12">
            <h2><a class="header" href="@Url.Action("Music", "Review")">Музыка</a><span class="info-text">(@Model.MusicCount)</span></h2>
            @foreach (var item in Model.Music)
            {
                Html.RenderPartial("InfoBox", item);
            }
        </div>
      }
    }
</div>
<div class="row-fluid">
    @{if (Model.Games != null && Model.Games.Length > 0)
      {
        <div class="span12">
            <h2><a class="header" href="@Url.Action("Games", "Review")">Игры</a><span class="info-text">(@Model.GamesCount)</span></h2>
            @foreach (var item in Model.Games)
            {
                Html.RenderPartial("InfoBox", item);
            }
        </div>
      }
    }
</div>
@section Scripts
{
   @* <script type="text/javascript">
        $('.carousel').carousel({
            interval: 3000
        });
    </script>*@
}

